Ext.onReady(function() {
			/*
			 * Ext.MessageBox.alert("这是一个提示框","这是一个提示框"); var toolbar1 = new
			 * Ext.Toolbar({ buttons:[{ text:'新建', handler:function(){
			 * Ext.MessageBox.alert("新建","新建操作的演示"); } },{ xtype:'tbseparator'
			 * },{ text:'打开' },{ text:'保存' }] }); var toolbar2=new Ext.Toolbar({
			 * buttons:[{ text:'上一步',
			 * icon:"extjs/resources/images/default/dd/drop-add.gif",
			 * cls:"x-btn-text-icon" },{ text:'下一步',
			 * icon:"extjs/resources/images/default/dd/drop-yes.gif",
			 * cls:"x-btn-text-icon"
			 * 
			 * },"-",{ text:'退出' }] }); var panel1=new Ext.Panel({
			 * title:'最简单的Panel', height:500, width:400, titleCollapse:true,
			 * collapsible:true, renderTo:Ext.getBody(), tbar:toolbar1,
			 * bbar:toolbar2, tools:[{ id:"refresh", handler:function(){
			 * Ext.MessageBox.alert("test","test"); } },{ id:"up",
			 * handler:function(event,toolEl,p){ p.collapse(true); } },{
			 * id:"down", handler:function(event,toolEl,p){ p.expand(true); }
			 * },{ id:"close", handler:function(event,toolEl,p){ p.hide(); } }],
			 * html:'<p>This is a panel' });
			 */
			/*
			 * var f=new Ext.form.FormPanel({ url:"login", method:"post",
			 * baseParams:{extra:"attach",id:100}, title:"欢迎登陆", width:300,
			 * height:130, bodyStyle:"padding:6px", lableAlign:"right",
			 * frame:true, items:[ new Ext.form.TextField({ name:"username",
			 * allowBlank:false, fieldLabel:"用户名" }) ,{ name:"password",
			 * xtype:"textfield", inputType:"password", fieldLabel:"密码",
			 * allowBlank:false }], buttons:[{ text:"确定", handler:function(){
			 * var username=f.getForm().findField("username").getValue(); var
			 * password=f.getForm().findField("password").getValue();
			 * f.getForm().submit({ success:function(f,action){
			 * Ext.MessageBox.alert("成功","恭喜，表单提交结果是："+action.result.msg+"，时间："+action.result.time+""); },
			 * }); } },{ text:"重置", handler:function(){ f.getForm().reset(); } }]
			 * }); f.render(Ext.getBody());
			 */

			/*
			 * var sm=new Ext.grid.CheckboxSelectionModel(); var cm=new
			 * Ext.grid.ColumnModel([ new Ext.grid.RowNumberer(), sm,
			 * {header:"姓名",dataIndex:"name",tooltip:"这是您的姓名"},//dataIndex对应record中的name属性
			 * {header:"性别",dataIndex:"sex",tooltip:"这是您的姓名",renderer:function(v){
			 * if(v=="男"){ return "女"; } else{ return "男"; }
			 *  }} ]); var data=[[ "李楠君", "男" ],[ "李赞红", "男" ],[ "胡惊涛", "男" ]];
			 * 
			 * var proxy=new Ext.data.MemoryProxy(data);
			 * 
			 * var record=Ext.data.Record.create([
			 * {name:"name",type:"string",mapping:0},
			 * {name:"sex",type:"string",mapping:1} ]); var reader=new
			 * Ext.data.ArrayReader({},record);
			 * 
			 * var store=new Ext.data.Store({ proxy:proxy, reader:reader,
			 * autoLoad:true }); var grid=new Ext.grid.GridPanel({ title:"中国公民",
			 * width:600, autoHeight:true, cm:cm, sm:sm, singleSelect:true,
			 * store:store, renderTo:Ext.getBody(), buttons:[{ text:"第一行",
			 * handler:function(){ var rsm=grid.getSelectionModel();
			 * rsm.selectFirstRow(); } },{ text:"上一行", handler:function(){ var
			 * rsm=grid.getSelectionModel(); if(!rsm.hasPrevious()){
			 * Ext.MessageBox.alert("警告","已达到第一行"); }else{ rsm.selectPrevious(); } }
			 * },{ text:"显示", handler:function(){ var view=grid.getView(); var
			 * rsm=grid.getSelectionModel(); var r=""; for(var i=0;i<view.getRows().length;i++){
			 * if(rsm.isSelected(i)){ r+=grid.getStore().getAt(i).get("name")+"<br>"; }
			 * Ext.MessageBox.alert("选择","<br>"+r); } }
			 *  }] });
			 */

			/*
			 * var proxy=new Ext.data.HttpProxy({ url:"login" });
			 * 
			 * var record=Ext.data.Record.create([
			 * {name:"cname",type:"string",mapping:"name"},
			 * {name:"csex",type:"string",mapping:"sex"} ]);
			 * 
			 * var reader=new Ext.data.JsonReader({
			 * totalProperty:"totalProperty", root:"root" },record);
			 * 
			 * var store=new Ext.data.Store({ proxy:proxy, reader:reader });
			 * 
			 * var combobox=new Ext.form.ComboBox({ renderTo:"side",
			 * triggerAction:"all", store:store, displayField:"cname",
			 * valueField:"csex", mode:"remote", pageSize:5, emptyText:"....."
			 * 
			 * }); var btn = new Ext.Button({ text:"确定", renderTo:Ext.getBody(),
			 * handler:function(){
			 * Ext.MessageBox.alert("。。",""+combobox.getValue()); } });
			 */

			var qry_winForm = new Ext.form.FormPanel({
						width : 360,
						height : 120,
						plain : true,
						layout : "form",
						defaultType : "textfield",
						labelWidth : 75,
						baseCls : "x-plain",
						buttonAlign : "center",
						bodyStyle : "padding:0 0 0 0",
						items : [{
									fieldLabel : "属性名称",
									width : 160,
									id : "prname",
									name : "prname",
									maxLength : 20,
									maxLengthText : '属性名称长度不能超过20位！',
									allowBlank : false,
									blankText : "请填写属性名称！"
								}

						]
					});
			var qrywin = new Ext.Window({
						title : "新建属性",
						width : 360,
						height : 120,
						plain : true,
						iconCls : "addicon",						
						resizable : false,// 不可以随意改变大小						
						draggable:false,// 是否可以拖动
						collapsible : true, // 允许缩放条
						closeAction : 'close',
						closable : true,
						// 弹出模态窗体
						modal : 'true',
						buttonAlign : "center",
						bodyStyle : "padding:10px 0 0 10px",
						items : [qry_winForm],
						buttons : [{
							text : "关 闭",
							minWidth : 70,
							handler:function(){
							}
						}]
					});
			qrywin.show();
		});